-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile #297
Add Dockerfile #297
Conversation
167da3d
to
668d3c1
Compare
Hello @marema31, Thanks for your PR. It will be interesting to be able to start a Docker image with a specific version of Venom. |
Hi @marema31 , Before making a release, we do a lot of testing to get the most stable version possible. We don't want to promote the master branch as a stable branch for 'production' use. The master branch can contain some breaking changes, it's not a good idea to run venom as is, without knowing which changes can break your existing tests. Here, a dockerfile with the latest release: FROM debian:buster-slim
RUN apt-get update && \
apt-get install -y curl unixodbc && \
rm -rf /var/lib/apt/lists/*
RUN LAST_RELEASE=$(curl -s https://api.github.com/repos/ovh/venom/releases | grep tag_name | head -n 1 | cut -d '"' -f 4) && \
todl=$(curl -s https://api.github.com/repos/ovh/venom/releases | grep ${LAST_RELEASE} | grep browser_download_url | grep -E 'venom.linux-amd64' | cut -d '"' -f 4) && \
curl -s $todl -L -o /opt/venom && \
chmod +x /opt/venom
ENTRYPOINT ["/opt/venom" ]
CMD [ "run", "--output-dir", "/outputs"] And we will provide official image on docker hub for the next release. |
Signed-off-by: Marc Carmier <mcarmier@gmail.com>
Signed-off-by: Marc Carmier <mcarmier@gmail.com>
Sure, if it respect your release cycle, it should be done like this Co-authored-by: Yvonnick Esnault <yvonnick@esnau.lt> Signed-off-by: Marc Carmier <mcarmier@gmail.com>
Signed-off-by: Marc Carmier <mcarmier@gmail.com>
Creating a docker image